﻿<UserControl x:Class="Adan.Client.Controls.MainOutputWindowNative"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:Adan.Client.Controls"
             xmlns:Controls1="clr-namespace:Adan.Client.Common.Controls;assembly=Adan.Client.Common"
             mc:Ignorable="d"
             FocusManager.FocusedElement="{Binding Path=txtCommandInput}">
    <Grid Focusable="False">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0">
            <ScrollViewer Name="scroll" CanContentScroll="True" VerticalScrollBarVisibility="Visible">
                <Controls1:TextBoxNative  Name="_textBoxNative" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
            </ScrollViewer>
        </Grid>
        <Grid Grid.Row="1">
            <Controls:TextBoxWithHistory x:Name="_txtCommandInput" AutoWordSelection="True" FontSize="16" Focusable="True" TextChanged="_txtCommandInput_TextChanged"/>
        </Grid>
    </Grid>
</UserControl>